package com.java110.intf.cart;

import com.java110.intf.FeignConfiguration;
import com.java110.dto.housekeeping.HousekeepingServFeeDto;
import com.java110.po.housekeeping.HousekeepingServFeePo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @ClassName IHousekeepingServFeeInnerServiceSMO
 * @Description 服务费用管理接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-cart", configuration = {FeignConfiguration.class})
@RequestMapping("/housekeepingServFeeApi")
public interface IHousekeepingServFeeInnerServiceSMO {


    @RequestMapping(value = "/saveHousekeepingServFee", method = RequestMethod.POST)
    public int saveHousekeepingServFee(@RequestBody HousekeepingServFeePo housekeepingServFeePo);

    @RequestMapping(value = "/updateHousekeepingServFee", method = RequestMethod.POST)
    public int updateHousekeepingServFee(@RequestBody  HousekeepingServFeePo housekeepingServFeePo);

    @RequestMapping(value = "/deleteHousekeepingServFee", method = RequestMethod.POST)
    public int deleteHousekeepingServFee(@RequestBody  HousekeepingServFeePo housekeepingServFeePo);

    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param housekeepingServFeeDto 数据对象分享
     * @return HousekeepingServFeeDto 对象数据
     */
    @RequestMapping(value = "/queryHousekeepingServFees", method = RequestMethod.POST)
    List<HousekeepingServFeeDto> queryHousekeepingServFees(@RequestBody HousekeepingServFeeDto housekeepingServFeeDto);

    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param housekeepingServFeeDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryHousekeepingServFeesCount", method = RequestMethod.POST)
    int queryHousekeepingServFeesCount(@RequestBody HousekeepingServFeeDto housekeepingServFeeDto);

    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryHousekeepingServDefaultFee", method = RequestMethod.POST)
    String queryHousekeepingServDefaultFee(@RequestParam(value = "shopId") String shopId,
                                                                 @RequestParam(value = "servId") String servId);
}
